home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6520 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.vu.nl!irmen
  3. From: irmen@cs.vu.nl (Irmen de Jong)
  4. Subject: Dynamic loading/linking
  5. Nntp-Posting-Host: prauw.cs.vu.nl
  6. Sender: news@cs.vu.nl
  7. Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
  8. Date: Fri, 29 Mar 1996 10:00:38 GMT
  9. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  10. Message-ID: <Dp0x52.90C.0.-s@cs.vu.nl>
  11.  
  12. Say I want to split my program into separate parts (because it's
  13. getting too big, or because some parts are rarely used).
  14. (I'm talking about my port of the python interpreter here)
  15.  
  16. What solutions  are feasible?
  17.  
  18. - Overlay. Don't know how this works. Can overlays reference global
  19.   data? Can overlays be loaded without replacing other parts of the
  20.   program? Can overlays be constructed without a great deal of work
  21.   required by the programmer (yea, that's right, me)?
  22.  
  23. - Amiga shared library. Would be most ideal, but libraries cannot reference
  24.   global data. (Ok Ok they can by passing all the pointers to all the
  25.   global data you want to reference but in my case this is no option.
  26.   Way to much global data.)
  27.  
  28. - Dynamic loading with LoadSeg(). Can't reference global data, can I?
  29.   See shared library.
  30.  
  31. *sigh* I thought it wasn't necessary but now I think the Amiga should have
  32. some sort of dynamic linking support. AmigaDOS 4.0?
  33.  
  34.  
  35. (Examples of programs getting too big: Pagestream 3 and Imagine 3.0+, both
  36. well over 1 megabyte main executable, of which big parts are used
  37. very infrequently, I reckon)
  38.  
  39. -- 
  40. /  Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/)  \
  41. \  Computer Science, VU A'dam, NL.  ``Nothing lasts forever'' -- Species   /
  42.